package com.chen.user.service;

import com.chen.model.dto.h5.UserRegisterDto;
import com.chen.model.dto.system.LoginDto;
import com.chen.model.vo.h5.UserInfoVo;
import jakarta.servlet.http.HttpServletRequest;

/**
 * @author cgj
 * @date 4/17/25 2:55 PM
 */
public interface UserService {
    /**
     * 用户注册
     * @param userRegisterDto
     */
    void register(UserRegisterDto userRegisterDto);

    /**
     * 用户登录
     * @param loginDto
     * @param req
     * @return
     */
    String login(LoginDto loginDto, HttpServletRequest req);

    /**
     * 登录后获取用户信息
     * @param token
     * @return
     */
    UserInfoVo getCurrentUserInfo(String token);
}
